package jy.hibernate.beans;

/**
 * User entity.
 * 
 * @author tingzi
 */
public class User implements java.io.Serializable {

	private static final long serialVersionUID = -7515826458238882968L;
	// Fields
	private int user_id;//
	private String user_name;//�û��� ������
	private String password;//����		
	private int user_type;//�û����� 0��ϵͳ����ԱΪ��1������Ա 2���ͻ�

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getUser_type() {
		return user_type;
	}

	public void setUser_tpye(int user_tpye) {
		this.user_type = user_tpye;
	}

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String user_name,String password, Integer user_type) {
		this.user_name=user_name;
		this.password=password;
		this.user_type=user_type;
		
	}
	public String toString(){
		return "user_name:"+user_name+"/tpassword:"+password+"/tuser_type:"+user_type;
	}
}
